<?php

namespace AppBundle\DataFixtures\ORM;

use Doctrine\Common\DataFixtures\FixtureInterface;
use Doctrine\Common\Persistence\ObjectManager;
use Nelmio\Alice\Fixtures;

class LoadFixtureData implements FixtureInterface
{
    public function load(ObjectManager $manager)
    {
        $manager->getConnection()->exec('ALTER TABLE <tablename> AUTO_INCREMENT = 1;');
        Fixtures::load(__DIR__ . '/fixtures.yml', $manager, ['providers' => [$this]]);
    }
}
